package com.he.DesignPatterns.decorator.demo2;

/**
 * @description: 抽象装饰器类 实现当前业务接口，并引入对象
 * @Author: HCL
 * @Date: 2024/8/27 14:31
 */
public class DecoratorClass implements QueryInterface{

    private QueryInterface queryInterface;

    public DecoratorClass(QueryInterface queryInterface){
        this.queryInterface = queryInterface;
    }

    @Override
    public void queryData() {
        queryInterface.queryData();
    }
}
